package com.microservice.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.microservice.wechat.entity.WechatArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 微信文章阅读量Mapper接口
 */
@Mapper
public interface WechatArticleMapper extends BaseMapper<WechatArticle> {

    /**
     * 批量插入或更新文章阅读量
     * 
     * @param articles 文章列表
     * @return 影响的行数
     */
    int batchInsertOrUpdate(@Param("list") List<WechatArticle> articles);
}
